package org.smile.design.decorator;

import org.smile.design.decorator.base.BaseDecoration;
import org.smile.design.decorator.custom.Cabinet;
import org.smile.design.decorator.custom.Wallcovering;

public class Application {
    public static void main(String[] args) {
        BaseDecoration baseDecoration = new BaseDecoration();
        baseDecoration.obtainTotal();
        baseDecoration.describe();

        System.out.println("==================================");

        HouseDecoration houseDecoration =  new Wallcovering(new Wallcovering(new Cabinet(baseDecoration)));
        System.out.println("Total:" + houseDecoration.obtainTotal());
        System.out.println("Describe:" + houseDecoration.describe());

    }
}
